﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="FilmReview.aspx.vb" Inherits="gojira.FilmReview" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1" GridLines="None" 
            ShowHeader="False">
            <Columns>
                <asp:TemplateField>
                <ItemTemplate>
                <h1><%# Eval("filmName") %></h1>
                <p><asp:Image ID="Image1" runat="server" Height="400px" Width="300px" ImageUrl='<%# Eval("poster") %>' /></p>
                </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
            ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
            SelectCommand="SELECT [ID], [filmName], [poster] FROM [godzillaFilms] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        Rate this film:</p>
    <p>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
    </p>
    <asp:Rating
        width="200" 
        Height="40" 
        ID="rating2" 
        runat="server" 
        StarCssClass="ratingStar" 
        WaitingStarCssClass="savedRatingStar" 
        EmptyStarCssClass="emptyRatingStar" 
        filledStarCssClass="filledRatingStar"
        MaxRating="5" 
    >
    </asp:Rating>
    <p>
    <asp:Button ID="btn_rate" runat="server" Text="Rate" /></p>
</asp:Content>
